<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>正式学员管理</title>
    <%@ include file="/WEB-INF/views/commons/common.jsp"%>
    <script type="text/javascript" src="/static/js/system/officialStudent.js"></script>
</head>
<body>
    <%--数据表格--%>
    <table id="officialStudent_datagrid" ></table>

    <%--表格工具栏--%>
    <div id="tb">
        <div>
        <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
        <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-tip',plain:true" data-cmd="lookView">查看</a>
            <a href="JavaScript:;" class="easyui-linkbutton" id="hhh" data-options="iconCls:'icon-undo',plain:true" data-cmd="changeClassA">转班</a>
            <a href="JavaScript:;" class="easyui-linkbutton" id="iii" data-options="iconCls:'icon-undo',plain:true" data-cmd="quitClass">休学</a>
            <a href="JavaScript:;" class="easyui-linkbutton" id="jjj" data-options="iconCls:'icon-undo',plain:true" data-cmd="recoverClass">复学</a>
            <a href="JavaScript:;" class="easyui-linkbutton" id="kkk" data-options="iconCls:'icon-undo',plain:true" data-cmd="drain">流失</a>
        <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
        </div>
        <div>
            姓名/电话:<input class="easyui-textbox" name="keyword" id="keyword" prompt="关键字">
            班级:
            <input class="easyui-combobox" name="clazzId" id="clazzId" prompt="班级" data-options="
                        url:'/clazz/listData.do',
                        valueField:'id',
                        textField:'name',
                        panelHeight:'auto'
                    ">
            入学时间:
            <input type="text" class="easyui-datetimebox"  name="beginDate" id="beginDate" prompt="开始时间"/>--
            <input type="text" class="easyui-datetimebox"  name="endDate" id="endDate" prompt="结束时间"/>
            <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="searchT"
               data-options="iconCls:'icon-search',plain:true">查询</a>

            <a href="javascript:void(0)" id="mb" class="easyui-menubutton"
               data-options="menu:'#mm',iconCls:'icon-filter'">快查</a>
            <div id="mm" style="width:50px;">
                <div data-options="iconCls:'icon-blank'" onclick="quickCheck(-1)">全部</div>
                <div data-options="iconCls:'icon-ok'" onclick="quickCheck(66)">在读</div>
                <div data-options="iconCls:'icon-back'" onclick="quickCheck(67)">转班中</div>
                <div data-options="iconCls:'icon-lock'" onclick="quickCheck(68)">休学</div>
                <div data-options="iconCls:'icon-cancel'" onclick="quickCheck(69)">流失</div>
            </div>
        </div>
    </div>

    <%--学员流失信息填写--%>
    <div id="studentLoss_dialog" align="center">
        <form id="studentLoss_form" method="post">
            <table  CELLSPACING="20" align="center" style="margin-top: 20px;
                    border-collapse:separate; border-spacing:0 10px;">
                <input type="hidden" id="studentLossId" name="id">
                <tr>
                    <td>学员姓名:</td>
                    <td><input class="easyui-textbox" readonly name="name"/></td>
                </tr>
                <tr>
                    <td>就读班级:</td>
                    <td><input name="clazz.id" class="easyui-combobox" readonly editable="false" data-options="
                            valueField: 'id',
                            textField: 'name',
                            url: '/clazz/listData.do',
                            panelHeight:'auto'
                            "/>
                    </td>
                </tr>
                <tr>
                    <td>已读天数:</td>
                    <td><input class="easyui-textbox" name="classDays"/></td>
                </tr>
                <tr>
                    <td>流失时间:</td>
                    <td><input type="text" class="easyui-datetimebox"  name="lossTime"/></td>
                </tr>
                <tr>
                    <td>流失阶段:</td>
                    <td><input name="lossStage.id" class="easyui-combobox" editable="false" data-options="
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '流失阶段',
                            panelHeight:'auto'
                            "/>
                    </td>
                </tr>
                <tr>
                    <td>是否退款:</td>
                    <td>
                        <select class="easyui-combobox" name="whetherRefund" style="width:150px;">
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>退款金额:</td>
                    <td><input type="text" class="easyui-textbox"  name="refundAmount"/></td>
                </tr>
                <tr>
                    <td>退学原因:</td>
                    <td><input type="text" class="easyui-textbox"  name="lossReason" style="width: 140px;height: 50px"/></td>
                </tr>
            </table>
        </form>
    </div>

    <%--学员转班信息填写--%>
    <div id="changeClass_dialog" align="center">
        <form id="changeClass_form" method="post">
            <table  CELLSPACING="20" align="center" style="margin-top: 20px;
                    border-collapse:separate; border-spacing:0 10px;">
                <input type="hidden" id="changeClassStuId" name="id">
                <tr>
                    <td>学员姓名:</td>
                    <td><input class="easyui-textbox" readonly name="name"/></td>
                </tr>
                <tr>
                    <td>就读班级:</td>
                    <td><input name="clazz.id" class="easyui-combobox" readonly editable="false" data-options="
                            valueField: 'id',
                            textField: 'name',
                            url: '/clazz/listData.do',
                            panelHeight:'auto'
                            "/>
                    </td>
                </tr>
                <tr>
                    <td>目标班级:</td>
                    <td><input name="targetClazz.id" class="easyui-combobox" editable="false" data-options="
                            valueField: 'id',
                            textField: 'name',
                            url: '/clazz/listData.do',
                            panelHeight:'auto'
                            "/>
                    </td>
                </tr>
            </table>
        </form>
    </div>

    <%--添加和编辑弹窗--%>
    <div id="officialStudent_dialog" align="center">
        <form id="officialStudent_form" method="post">
            <table  CELLSPACING="20" align="center" style="margin-top: 20px;
                    border-collapse:separate; border-spacing:0 10px;">
                <input type="hidden" id="aaaaId" name="id">
                <tr>
                    <td>姓名:</td>
                    <td><input class="easyui-textbox readOn" name="name"/></td>
                    <td>年龄:</td>
                    <td><input class="easyui-textbox readOn" name="age"/></td>
                    <td>性别:</td>
                    <td><input  name="gender.id" class="easyui-combobox readOn" data-options="
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '性别',
                            editable:false,
                            panelHeight:'auto'
                            "/>
                    </td>
                </tr>
                <tr>
                    <td>电话:</td>
                    <td><input class="easyui-textbox readOn" name="tel"/></td>
                    <td>QQ:</td>
                    <td><input class="easyui-textbox readOn" name="qqNum"/></td>
                    <td>邮箱:</td>
                    <td><input class="easyui-textbox readOn" name="email"/></td>
                </tr>
                <tr>
                    <td>学校名称:</td>
                    <td><input class="easyui-textbox readOn" name="schoolName"/></td>
                    <td>学校客户:</td>
                    <td><input  name="schoolClient.id" class="easyui-combobox readOn" data-options="
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '大客户所在的学校',
                            editable:false,
                            panelHeight:'auto'
                            "/>
                    </td>
                    <td>学历:</td>
                    <td><input  name="education.id" class="easyui-combobox readOn" data-options="
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '学历',
                            editable:false,
                            panelHeight:'auto'
                            "/>
                    </td>
                </tr>
                <tr>
                    <td>地址:</td>
                    <td><input class="easyui-textbox readOn" name="address"/></td>
                    <td>客户来源:</td>
                    <td><input  name="clientSource.id" class="easyui-combobox readOn" data-options="
                            editable:false,
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '来源',
                            panelHeight:'auto'
                            "/>
                    </td>
                    <td>客户类型:</td>
                    <td><input  name="clientType.id" class="easyui-combobox readOn" data-options="
                            editable:false,
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '客户类型',
                            panelHeight:'auto'
                            "/>
                    </td>
                </tr>
                <tr>
                    <td>工作年限:</td>
                    <td><input class="easyui-textbox readOn" name="workingYear"/></td>
                    <td>班级:</td>
                    <td>
                        <input class="easyui-combobox readOn" editable="false" name="clazz.id" data-options="
                        url:'/clazz/listData.do',
                        valueField:'id',
                        textField:'name',
                        panelHeight:'auto'
                    ">
                    </td>
                    <td>营销人员:</td>
                    <td>
                        <input class="easyui-combobox readOn" editable="false" name="marketingPerson.id" data-options="
                        url:'/employee/listData.do',
                        valueField:'id',
                        textField:'username',
                        panelHeight:'auto'
                    ">
                    </td>

                </tr>
                <tr>
                    <td>意向校区:</td>
                    <td><input  name="campus.id" class="easyui-combobox readOn" data-options="
                            editable:false,
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '意向校区',
                            panelHeight:'auto'
                            "/>
                    </td>
                    <td>转正时间:</td>
                    <td><input class="easyui-datetimebox readOn" editable="false" name="positiveTime"/></td>
                    <td>身份证号:</td>
                    <td><input class="easyui-textbox readOn" name="idCard"/></td>
                </tr>
                <tr>
                    <td>紧急联系人:</td>
                    <td><input class="easyui-textbox readOn" name="emergencyName"/></td>
                    <td>紧急联系人电话:</td>
                    <td><input class="easyui-textbox readOn" name="emergencyTel"/></td>

                    <td>就业意向:</td>
                    <td><input  name="jobIntention.id" class="easyui-combobox readOn" data-options="
                        valueField: 'id',
                        textField: 'name',
                        url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '就业意向',
                        editable:false,
                        panelHeight:'auto'
                        "/>
                    </td>
                </tr>
                <tr>
                    <td>工作经历:</td>
                    <td>
                        <input name="workExperience" class="easyui-textbox readOn" />
                    </td>

                    <td>学习状态:</td>
                    <td><input  name="studyState.id" class="easyui-combobox readOn" data-options="
                        valueField: 'id',
                        textField: 'name',
                        url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '学习状态',
                        editable:false,
                        panelHeight:'auto'
                        "/>
                    </td>
                    <td>支付方式:</td>
                    <td><input  name="paymentType.id" class="easyui-combobox readOn" data-options="
                        valueField: 'id',
                        textField: 'name',
                        url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '收款类型',
                        editable:false,
                        panelHeight:'auto'
                        "/>
                    </td>
                </tr>

            </table>
        </form>
    </div>

    <%--弹窗底部按钮--%>
    <div id="bb">
        <a href="JavaScript:;" class="easyui-linkbutton dialog-button" iconCls="icon-save" data-cmd="save">保存</a>
        <a href="JavaScript:;" class="easyui-linkbutton dialog-button" iconCls="icon-cancel" data-cmd="cancel">关闭</a>
    </div>
    <div id="cc">
        <a href="JavaScript:;" class="easyui-linkbutton" iconCls="icon-save" data-cmd="saveChange">保存</a>
        <a href="JavaScript:;" class="easyui-linkbutton" iconCls="icon-cancel" data-cmd="cancelChange">关闭</a>
    </div>
    <div id="dd">
        <a href="JavaScript:;" class="easyui-linkbutton" iconCls="icon-save" data-cmd="saveLossStu">保存</a>
        <a href="JavaScript:;" class="easyui-linkbutton" iconCls="icon-cancel" data-cmd="cancelLossStu">关闭</a>
    </div>

</body>
</html>
